<template>
  <div >
    
    <slot name="header"></slot>


    <hr>


    <div>
      <div v-for="item in nameList" :key="item.id">
        <slot name="nameItem" :person="item"></slot>
      </div>
    </div>


    
  </div>
</template>

<script>
export default {
  name: "Jie",
  props: ["nameList"],
};
</script>

<style scoped>
.itemOuter {
  width: 200px;
  height: 300px;
  border: 1px solid #000;
}
.itemOuter h2 {
  background: orange;
}
</style>
